package com.ght.order.controller;

import com.ght.order.entry.OrderEntry;
import com.ght.order.service.IOrderService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * TODO （请在这里添加该类的注释）
 *
 * @authoor wei.zhao
 * date 2024/11/21
 */
@RestController
@RequestMapping("/order")
@Tag(name="订单管理")
public class OrderController {

    @Autowired
    IOrderService orderService;

    @GetMapping("/test")
    public String test(OrderEntry entry){
        return "接口测试";
    }

    @GetMapping("/list")
    public List list(OrderEntry entry){
        return orderService.findOrderList();
    }


}
